import request from '@/request.js'

//删除分类
export function del(id){
    return request({
        url: '/category/' + id,
        method: 'delete',
    });
}

//添加分类
export function add(data){
    return request({
        url: '/category',
        method: 'post',
        data: data
    })
}

//修改分类
export function update(data){
    return request({
        url: '/category',
        method: 'put',
        data: data
    })
}

//查询分类
export function selectAll(data){
    return request({
        url: '/category',
        method: 'get',
        data: data
    })
}